package com.xiaoshuidi.cloud.module.rooms.pojo;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;

import com.xiaoshuidi.cloud.framework.mybatis.core.dataobject.BaseDO;
import com.xiaoshuidi.cloud.framework.tenant.core.db.TenantBaseDO;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("room_equipment_category")
@Schema(description="资产类别表")
public class EquipmentCategory extends TenantBaseDO implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(description = "主键id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @Schema(description = "资产类别名称")
    private String name;

    @Schema(description = "上级分类")
    private Long pcategoryId;

    @Schema(description = "编码")
    private String code;

    @Schema(description = "计量单位")
    private String unit;

    @Schema(description = "保修时长(月)")
    private String warrantyMonth;

    @Schema(description = "使用期限")
    private String shelfLife;

    @Schema(description = "资产类型类别 1系统预设 2自定义")
    private Integer type;

}
